package com.hecn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 陈朋康
 * @site hecn.gitee.io
 * @discription 通过SpringMVC来实现转发和重定向 - 有视图解析器；
 */
@Controller
public class ResultGoThree {
    @RequestMapping("/rsm2/t1")
    public String test1() {
        //转发
        return "admin";
    }

    @RequestMapping("/rsm2/t2")
    public String test2() {
        //转发二
        return "redirect:/index.jsp";
//        return "redirect:hello.do";
    }

}
